package com.mall.service.order.service;

import com.mall.model.domain.OmsOrderSetting;
import com.mall.service.order.mapper.OmsOrderSettingMapper;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

@Service
public class OmsOrderSettingService {
    @Autowired
    private OmsOrderSettingMapper settingMapper;

    public void update(Integer id,  OmsOrderSetting omsOrderSetting) {
        settingMapper.deleteById(id);
        settingMapper.insert(omsOrderSetting);

    }

    public OmsOrderSetting select(Integer id) {
        OmsOrderSetting omsOrderSetting = settingMapper.selectById(id);
        return omsOrderSetting;
    }
}
